<template>
    <div class="recommed">
        <div class="content" v-for="(items,index) in recommends" :key="index">
            <a class="items" :href="items.link">
                <img :src="items.image" alt="">
                <div class="title">{{items.title}}</div>
            </a>
        </div>
       
    </div>
</template>

<script>
export default {
    name:'HomeRec',
    props:{
        recommends:{
            type:Array,
            default(){
                return []
            }
        }
    }
}
</script>

<style scoped>
.recommed{
 display: flex;
 justify-content: space-around;
 margin-top: 10px;
 padding-bottom: 30px;
 border-bottom: 10px solid #eee;
}
.recommed .content{
text-align: center;
font-size: 14px;

}
.recommed .items {
    display: inline-block;
}
.recommed .items img {
    width: 80px;
    height: 80px;
}
.recommed .items .title {
  padding-top: 6px;
}
</style>